package GUI.Panels.GameObjectPanels;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.ActionListener;

import javax.swing.JPanel;

import Helper.HelperMethods;

public class WeaponPanel extends ObjectPanel
{
	private static final long serialVersionUID = 1L;
	
	private final JPanel buttonPanel = new JPanel();
	
	public WeaponPanel(ActionListener actionListener, int maxWidth, int maxHeight)
	{
		setPreferredSize(new Dimension(maxWidth, maxHeight));
		setLayout(new BorderLayout());
		buttonPanel.setPreferredSize(new Dimension(maxWidth, maxHeight));
		addButtons(actionListener);
	}
	
	public void addButtons(ActionListener actionListener)
	{
		HelperMethods.makeButton(buttonPanel, "Attack!", actionListener);
		this.add(buttonPanel, BorderLayout.NORTH);
	}
}
